//
//  ZYXBuyViewController.m
//  Lottery
//
//  Created by zhaoyingxin on 15/3/15.
//  Copyright (c) 2015年 163.com. All rights reserved.
//

#import "ZYXBuyViewController.h"

@interface ZYXBuyViewController ()


- (IBAction)titleClick:(UIButton *)sender;

@end

@implementation ZYXBuyViewController




- (IBAction)titleClick:(UIButton *)sender
{
    //点击标题按钮 按钮旋转 0.2秒执行动画完成
    [UIView animateWithDuration:0.2 animations:^{
        sender.imageView.transform = CGAffineTransformMakeRotation(M_PI);
    }];
    
    //添加弹出框
    UIView *temp = [[UIView alloc] init];
    CGFloat tempX = 100;
    CGFloat tempY = 70;
    CGFloat tempW = 120;
    CGFloat tempH = 300;
    temp.frame = CGRectMake(tempX,tempY,tempW,tempH);
    temp.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:temp];
    
    //TODO 判断 sender.imageView 的状态实现点击该按钮动画效果的切换
}
@end
